package vo{
	
	public class CardVo{
		
		public var value : int;
//		卡牌type黑红梅方
		public var type : int;			
		public var id : int;
		public var isSelected : Boolean = false;
		
		public function CardVo( id : int){
			this.id = id;
			type = Math.floor(id / 13) + 1;
			value = id % 13 == 0 ? 13 : id % 13;	
			trace(toString());
		}

		//因为每个卡牌是VO类型，所以要使用 toString 方法把每个卡牌转型
		public function toString( ) : String {			
			return "id：" + id.toString( )  + ",value：" + value.toString( ) + ",type：" + type.toString( );
		}
	 }
}